import QtQuick 2.4
import QtQuick.Window 2.2

Rectangle {
    id: rectangle
    width: 1000
    height: 40
    color: "#4b4b4b"
    property alias text: txtdatetime.text

    Text {
        id: i2dsp
        x: 17
        y: 13
        color: "#ffffff"
        text: qsTr("i2DSP")
        anchors.verticalCenter: parent.verticalCenter
        verticalAlignment: Text.AlignVCenter
        horizontalAlignment: Text.AlignHCenter
        font.pixelSize: 20
    }

    Text {
        id: txtdatetime
        x: 840
        y: 16
        color: "#ffffff"
        text: qsTr("2017-08-15 16:57")
        property string property0: "none.none"
        anchors.right: parent.right
        anchors.rightMargin: 10
        anchors.verticalCenter: parent.verticalCenter
        verticalAlignment: Text.AlignVCenter
        horizontalAlignment: Text.AlignHCenter
        font.pixelSize: 20
    }

    Text {
        id: cloudconect
        x: 722
        y: 10
        color: cloudConnectState ? "green" : "red"
        text: cloudConnectState ? qsTr("云端连接成功") : "云端断开连接"
        anchors.right: txtdatetime.left
        anchors.rightMargin: 20
        anchors.verticalCenterOffset: 1
        anchors.verticalCenter: parent.verticalCenter
        verticalAlignment: Text.AlignVCenter
        horizontalAlignment: Text.AlignHCenter
        font.pixelSize: 20
    }
}
